package com.hrsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("distributeddetail")
public class DistributedListDetail {
    private static final long serialVersionUID = 1L;

    @TableId(value = "distributed_detail_id", type = IdType.AUTO)
    private Long distributedDetailId;

    @TableId(value = "distributed_id")
    private Long distributedId;

    @TableField("s_list_id")
    private Long sListId;

    @TableField("File_id")
    private Long fileId;

    @TableField("Name")
    private String name;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("Basic")
    private BigDecimal Basic;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("Transportation")
    private BigDecimal Transportation;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("Lunch")
    private BigDecimal Lunch;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("Communication")
    private BigDecimal Communication;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("Endowment")
    private BigDecimal Endowment;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("Unemployment")
    private BigDecimal Unemployment;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("Medical")
    private BigDecimal Medical;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("ProvidentFund")
    private BigDecimal ProvidentFund;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("bounty")
    private BigDecimal bounty;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("deduction")
    private BigDecimal deduction;
}
